<?php include $this->getViewFile('/common/Head'); ?>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
   <?php include $this->getViewFile('/common/Nav') ?>
   <form class="J_ajaxForm" action="<?php echo AdminBase::U("edit") ?>" method="post" id="myform">
   <div class="h_a">基本属性</div>
   <div class="table_full">
   <table width="100%" class="table_form contentWrap">
        <tbody>
          <tr>
            <th width="100">商品标题</th>
            <td><input type="text" name="title" value="<?php echo $data->title?>" class="input length_6" id="title" placeholder="商品标题"></td>
          </tr>
          <tr>
            <th>商品地址</th>
            <td><input type="text" name="url" value="<?php echo $data->url?>" class="input length_6" id="url" placeholder="http://"></td>
          </tr>
          <tr>
            <th>缩略图</th>
            <td><input type="text" name="thumb" value="<?php echo $data->thumb?>" class="input length_6" id="thumb" placeholder="http://"></td>
          </tr>
          <tr>
            <th>商品价值</th>
            <td><input type="text" name="worth" class="input length_1" value="<?php echo $data->worth?>" id="worth"></td>
          </tr>
          <tr>
            <th>兑换积分</th>
            <td><input type="text" name="integral" class="input length_1" value="<?php echo $data->integral?>" id="integral"></td>
          </tr>
          <tr>
            <th>兑换总数</th>
            <td><input type="text" name="quantum" class="input length_1" value="<?php echo $data->quantum?>" id="quantum"></td>
          </tr>
          <tr>
            <th>兑换次数</th>
            <td><input type="text" name="frequency" class="input length_1" value="<?php echo $data->frequency?>" id="frequency"> <span>每人同个商品允许兑换几次，0不限</span></td>
          </tr>
          <tr>
          <th>兑换开始时间</td>
          <td><input type="text" name="start_time" class="input length_2 J_datetime " value="<?php echo  date('Y-m-d 10:00',$data->start_time)?>" placeholder="上架时间"></td>
         </tr>
         <tr>
          <th>兑换结束时间</td>
          <td><input type="text" name="end_time" class="input length_2 J_datetime " value="<?php echo  date('Y-m-d 10:00',$data->end_time)?>" placeholder="下架时间"></td>
         </tr>
         <tr>
            <th>允许兑换会员组</th>
            <td><?php echo Form::checkbox(MembersGroupModel::model()->getGroupArr(),$data->member_group,'name="member_group[]"'); ?></td>
          </tr>
          <tr>
            <th>状态</th>
            <td><?php echo Form::radio(array(1=>'正常',0=>'待审核'),1,'name="status"'); ?></td>
          </tr>
          <tr>
            <th>排序</th>
            <td><input type="text" name="listorder" class="input length_1" value="<?php echo $data->listorder?>" id="listorder"></td>
          </tr>
        </tbody>
      </table>
   </div>
   <div class="btn_wrap">
      <div class="btn_wrap_pd">
		<input type="hidden" name="id" value="<?php echo $data->id?>" />
        <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">确认修改</button>
      </div>
    </div>
    </form>
</div>
<script src="<?php echo $staticUrl; ?>statics/js/common.js"></script>
<script>

</script>
</body>
</html>